package org.jb.coinche.server.user.impl;

import org.jb.coinche.client.user.UserLogin;
import org.jb.coinche.client.user.UserService;
import org.jb.coinche.server.user.UserRegistry;

import com.google.inject.Module;
import com.google.inject.servlet.ServletModule;

public class UserModule extends ServletModule implements Module {

	@Override
	protected void configureServlets() {
		
		filter("*/rpc").through(UserLogFilter.class);
		
		bind(UserRegistry.class).to(UserRegistryImpl.class);
		bind(UserService.class).to(UserServiceImpl.class);
		bind(String.class).annotatedWith(UserLogin.class).toProvider(UserServiceImpl.class);
	}
	

}
